﻿using HongYeSystemWebApi.Templet.Entity.Entities;
using HongYeSystemWebApi.Templet.Entity.Request;
using HongYeSystemWebApi.Templet.Entity.Request.SysCostType;
using HongYeSystemWebApi.Templet.Entity.Request.SysProject;
using HongYeSystemWebApi.Templet.Entity.Response;
using HongYeSystemWebApi.Templet.Entity.Response.Project;
using HongYeSystemWebApi.Templet.Entity.Response.SysCostType;
using System;
using System.Threading.Tasks;

namespace HongYeSystemWebApi.Templet.IService
{
    public interface ICostTypeService
    {
        /// <summary>
        /// 新增项目
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task InsertAsync(SysCostTypeInsertRequest request);

        /// <summary>
        /// 更新项目
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task UpdateAsync(SysCostTypeUpdataRequest request);

        /// <summary>
        /// 删除项目
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task DeleteAsync(MultiIdRequest request);
        /// <summary>
        /// 获取项目信息列表
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task <PageModel<SysCostTypeDataPageResponse>> GetListAsync(KeyPageRequest request);

        /// <summary>
        /// 根据名称查找CostType
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task GetNameAsync(KeyPageRequest request);

    }
}
